//
//  EVLoadMaxAd.h
//  EyuDragonVideo
//
//  Created by haiwai on 2024/8/20.
//

#import <Foundation/Foundation.h>
#import "AboAdParams.h"

NS_ASSUME_NONNULL_BEGIN

//激励广告

typedef void (^AdResultBlock)(AboAdParams*adUnit);
typedef void (^AdFailBlock)(AboAdParams*adUnit,NSError *error);

@interface AboMaxRewardAd : NSObject

/// 实例对象
+(instancetype)RewardAd;


/// 预加载激励广告
-(void)PreloadedRewardAd;


/// 播放广告
/// - Parameters:
///   - showAd: 显示广告
///   - finishAd: 播放完成 领取奖励
///   - clickAd: 点击广告
///   - failAd: 加载失败
-(void)playRewardAdWithShow:(AdResultBlock)showAd finish:(AdResultBlock)finishAd click:(AdResultBlock)clickAd fail:(AdFailBlock)failAd;

/// 激励广告是否已经准备好
-(BOOL)RewardAdIsLoaded;

@end

NS_ASSUME_NONNULL_END
